class {
    onMount() {
        window[this.input.name] = this;
    }
}
<div>
    Hello from ${input.name}!
</div>
